//
//  JWTCardTypeView.m
//  JWT
//
//  Created by ndm on 17/2/14.
//  Copyright © 2017年 com.jwtsoft. All rights reserved.
//

#import "JWTCardTypeView.h"

@implementation JWTCardTypeView
SHARED_INSTANCE_IMPLEMENTATION(JWTCardTypeView);
-(instancetype)initWithFrame:(CGRect)frame{
    self = [super initWithFrame:frame];
    if (self) {
        CGFloat bth_width = 44;
        _cardSelBtn = [[UIButton alloc] initWithFrame:CGRectMake(Cell_Margin,0, bth_width, bth_width)];
        _cardSelBtn.userInteractionEnabled = NO;
        [_cardSelBtn setImage:[UIImage imageNamed:@"card_normal"] forState:UIControlStateNormal];
        [self addSubview:_cardSelBtn];
        
        _cardTypeLabel = [[UILabel alloc] initWithFrame:CGRectMake(_cardSelBtn.right+Cell_Margin*0.5, _cardSelBtn.top,frame.size.width-bth_width-3*Cell_Margin, 34)];
        _cardTypeLabel.textColor = RGB_DarkGray;
        _cardTypeLabel.font = Text_Font15;
        [self addSubview:_cardTypeLabel];
        _cardTypeLabel.center = CGPointMake(_cardTypeLabel.center.x, _cardSelBtn.center.y);
        
    }
    return self;
}
@end
